<template>
  <Demo v-if="data.isShow"/>
  <button @click="data.isShow=!data.isShow">点我切换</button>
  <hr>
  
</template>

<script>
import { reactive } from 'vue';
import Demo from './components/Demo.vue';


export default {
  name:'App',
  components:{Demo},
  setup(){
    let data = reactive({
      isShow:true
    })
    return {
      data
    }
  }
}
</script>

<style>

</style>